#ifndef AIAI_FILEWRITE_HPP
#define AIAI_FILEWRITE_HPP

#include <iostream>

class aiai_filewrite
{
public:
    aiai_filewrite(std::string fileName);
    ~aiai_filewrite();
    int write(unsigned char *buff,int size);
    void close();
private:
    bool isfirstwrite;
    std::string filename;
    FILE *fp;
};

#endif // AIAI_FILEWRITE_HPP
